package com.wcll.servlet;

import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.wcll.www.AreaBean;

public class AreaServlet extends HttpServlet {
	public AreaServlet() {
		super();
	}
	public void destroy() {
		super.destroy(); // Just puts "destroy" string in log
		// Put your code here
	}

	public void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
			response.setContentType("text/html;charset=utf-8");
			PrintWriter out = response.getWriter();
			String ss = request.getParameter("id");
			ss= ss+"__";
			AreaBean area = new AreaBean();
			 ArrayList<String> a = area.getA(ss);
			Iterator<String> ia =a.iterator();
			while(ia.hasNext()){
				String s = ia.next();
				out.print(s);
			}
	}
}
